package com.xiaoshuidi.cloud.module.contract.decotator.config;

import com.xiaoshuidi.cloud.module.contract.decotator.base.BaseContractDecotator;
import com.xiaoshuidi.cloud.module.contract.decotator.model.BookingConfirmationFilterProcessor;
import com.xiaoshuidi.cloud.module.contract.decotator.model.ElectronicContractProcesson;
import com.xiaoshuidi.cloud.module.contract.decotator.model.PaperContractProcesson;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Auther: zhangyuan
 * @Date: 2023/4/27 09:08
 * @Description: Bean托管初始化类
 * @Version 1.0.0
 */
@Configuration
public class BeanInitialization {
    @Bean("bookingConfirmationFilterProcessor")
    public BookingConfirmationFilterProcessor bulidBookingConfirmation(){
        BookingConfirmationFilterProcessor bookingConfirmationFilterProcessor = new BookingConfirmationFilterProcessor();
        return bookingConfirmationFilterProcessor;
    }

    @Bean("electronicContractProcesson")
    public ElectronicContractProcesson bulidElectronicContract(){
        ElectronicContractProcesson electronicContractProcesson = new ElectronicContractProcesson();
        return electronicContractProcesson;
    }


    @Bean("paperContractProcesson")
    public PaperContractProcesson bulidPaperContract(){
        PaperContractProcesson paperContractProcesson = new PaperContractProcesson();
        return paperContractProcesson;
    }


    @Bean("baseContractDecotator")
    public BaseContractDecotator bulidBaseContract(){
        BaseContractDecotator baseContractDecotator = new BaseContractDecotator();
        return baseContractDecotator;
    }
}
